package com.pandy.transaction;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.EnvironmentAware;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description:
 * @author: panhong
 * @date: 2025/3/19
 */

@Component
public class User2Service {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    // 自己注入自己
    @Autowired
    private UserService userService;

    public void methodB() {
        //this.methodA(); // 方法内的自调用
        //userService.methodA();
    }
}
